package com.shop.entity;

import java.util.Objects;

//��Ʒ��������id
public class GoodsSecondType {
    private int gst_id;      //��Ʒ��������id
    private int gtf_id;      //��Ʒһ������id�������
    private String gst_name;  //��Ʒ����������

    public GoodsSecondType(int gst_id, int gtf_id, String gst_name) {

        this.gst_id = gst_id;
        this.gtf_id = gtf_id;
        this.gst_name = gst_name;
    }

    public GoodsSecondType() {
    }

    public int getGst_id() {
        return gst_id;
    }

    public void setGst_id(int gst_id) {
        this.gst_id = gst_id;
    }

    public int getGtf_id() {
        return gtf_id;
    }

    public void setGtf_id(int gtf_id) {
        this.gtf_id = gtf_id;
    }

    public String getGst_name() {
        return gst_name;
    }

    public void setGst_name(String gst_name) {
        this.gst_name = gst_name;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        GoodsSecondType that = (GoodsSecondType) o;
        return gst_id == that.gst_id &&
                gtf_id == that.gtf_id &&
                Objects.equals(gst_name, that.gst_name);
    }

    @Override
    public int hashCode() {
        return Objects.hash(gst_id, gtf_id, gst_name);
    }

    @Override
    public String toString() {
        return "GoodsSecondType{" +
                "gst_id=" + gst_id +
                ", gtf_id=" + gtf_id +
                ", gst_name='" + gst_name + '\'' +
                '}';
    }
}
